import request from '@/utils/request'

// 查询活动管理列表
export function listActivitycheck(query) {
  return request({
    url: '/ordercheck/activitycheck/list',
    method: 'get',
    params: query
  })
}

// 查询活动管理详细
export function getActivitycheck(activityid) {
  return request({
    url: '/ordercheck/activitycheck/' + activityid,
    method: 'get'
  })
}

// 新增活动管理
export function addActivitycheck(data) {
  return request({
    url: '/ordercheck/activitycheck',
    method: 'post',
    data: data
  })
}

// 修改活动管理
export function updateActivitycheck(data) {
  return request({
    url: '/ordercheck/activitycheck',
    method: 'put',
    data: data
  })
}

// 删除活动管理
export function delActivitycheck(activityid) {
  return request({
    url: '/ordercheck/activitycheck/' + activityid,
    method: 'delete'
  })
}

  // 通过活动管理
  export function throActivitycheck(activityid) {
    return request({
      url: '/ordercheck/activitycheck/status/' + activityid,
      method: 'post'
    })
}
